-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modify the 'vcctl job run' function #542
Conversation
Hey @jiangkaihua, TravisCI finished with status TravisBuddy Request Identifier: 03cd6870-0bb9-11ea-9cd6-8f216fa7db85 |
pkg/cli/job/run.go
Outdated
if job == nil { | ||
fmt.Printf("Error: job script (specified by --filename or -f) is mandatory to run a particular job") | ||
return nil | ||
if job == nil && launchJobFlags.Name != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if job name is nil, we should return error here.
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: e29d3ab0-0c0b-11ea-9cd6-8f216fa7db85 |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: 0afdba10-0c0d-11ea-9cd6-8f216fa7db85 |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: fa05b3c0-0c0c-11ea-9cd6-8f216fa7db85 |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: e83253b0-0c2f-11ea-9cd6-8f216fa7db85 |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: ba23fc00-0c32-11ea-9cd6-8f216fa7db85 |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: c91f9610-0c32-11ea-9cd6-8f216fa7db85 |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: 7bf8dc30-0ccc-11ea-9489-798921b627f8 |
Hey @jiangkaihua, TravisCI finished with status TravisBuddy Request Identifier: 9a6fda90-0f30-11ea-b3c6-2f81db3b77d2 |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: bfabcb20-0f62-11ea-b3c6-2f81db3b77d2 |
Signed-off-by: jiangkaihua <jiangkaihua1@huawei.com>
Hey @jiangkaihua, TravisBuddy Request Identifier: 75080a80-0f6b-11ea-b3c6-2f81db3b77d2 |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jiangkaihua, k82cn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
now
vcctl job run
can used asvcctl job run -N <job name> -n <namespace> -i <image>
and
vcctl job run
with no arguments will throw error